import request from '@/api/request.js'

/** 
  * 登录
  * @param {Object} data{
						"password": "123456",密码
						"username": "17596496508" 用户名
  }
  * @return 
  */
function doLogin(data){
	return request({
		url:'/lejuClient/login/doLogin',
		method:'post',
		data
	})
}
/** 
  * 获取用户登录信息
  * @return 
  */
function getMemberInfo(){
	return request({
		url:'/lejuClient/login/getMemberInfo'
	})
}
/** 
  * 更新用户信息
  * @return 
  */
function updateMemberInfo(data){
	return request({
		url:'/lejuClient/member/updateMemberInfo',
		method:'post',
		data
	})
}
/** 
  * 用户注册
  * @return 
  */
function register(data){
	return request({
		url:'/lejuClient/member/register',
		method:'post',
		data
	})
}
/** 
  * 获取购物车列表
  * @return 
  */
function findAllCartItem(){
	return request({
		url:'/lejuClient/cart/findAllCartItem'
	})
}
export {
	doLogin,getMemberInfo,register,findAllCartItem,updateMemberInfo
}